package com.csd.action.team;

import java.util.List;

import com.csd.pojo.Project;
import com.csd.serviceImpl.ProjectService;


/**
 * 
 * Action：查询团队所有工程（扩展）
 * @author csd
 * @version 1.0
 * 
 * <br> 修订时间：2009-12-17
 * <br> 修改原因：创建文件
 * <br> 修改人：刘世彬
 * 
 * <br> 
 * 
 */
public class ProjectListAction {
	/**���ҵ��Ĺ����б�*/
	private Project project;
	
	private ProjectService service;

	public ProjectService getService() {
		return service;
	}

	public void setService(ProjectService service) {
		this.service = service;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public String execute(){
		List<Project> list = service.listTeamProject(); 
		if(list.size()>=0)
		{
			this.project = list.get(0);
		}
		
		return null;
	}
}
